<?php


class ScriptConfig {

	private $system_send_email_to_author_if_membership_was_removed		= false;
	private $system_allow_validated_avatar_pictures_only			= true;

	private $system_reports_via_email_to					= null;

	/* Standardmaessige Einstellung der Download Mindest Geschwindigkeit. 
	 * Nach dieser wird die Zeit berechnet nach der das File wieder innerhalb einer Session
	 * geloescht wird. (Angabe in Bits pro Sekunde)
	 */
	private $system_temporary_file_deletion_default_download_speed_bps	= 9600;

	/* Bonus der auf den obig ermittelten Zeitwert aufgeschlagen wird */
	private	$system_temporary_file_deletion_default_timebonus_in_percent	= 25;

	/* Groesser Cleanup, loeschen der temporaeren Session-Verzeichnisinhalte nach einer bestimmten Zeit 
	 * null = Funktion ausgeschaltet 
	 */
	private $system_temporary_directory_cleanup_timeout_in_seconds		= null;

	/** Grafisches **/
	private $system_allowed_avatars_as_mime_type_array	= array ( "image/jpeg", "image/png", "image/gif"); 

	private $database_keeps_membershipentries_from_deleted_accounts		= false;


	/** Pfade **/

	private $system_temporary_resurrected_files_directory			= "temp/";

	function ScriptConfig() {

	}


	function getScriptDescription() {
		return "project.class.php vx.xx";
	}

	function getConfigFromSQL() {
	}

	function shallDatabaseKeepMembershipEntriesFromDeletedAccounts() {
		return $this->database_keeps_membershipentries_from_deleted_accounts;
	}


	function getAllowedAvatarMimeTypes() {
		return $this->system_allowed_avatars_as_mime_type_array;
	}

	function getTempFilesBaseDirectory() {
		return $this->system_temporary_resurrected_files_directory;
	}

	function getTempFilesDirectory( $session_id ) {
		return $this->system_temporary_resurrected_files_directory.
			$session_id."/";
	}

	function getTempFilesMinimumDownloadSpeedInBytesPerSeconds() {
		return $this->system_temporary_file_deletion_default_download_speed_bps / 8;
	}

	function getTempFilesTimeBonusNumerical() {
		return 1 + ($this->system_temporary_file_deletion_default_timebonus_in_percent / 100);
	}

	function getTempDirectoryTimeoutForCleanUp() {
		return $this->system_temporary_directory_cleanup_timeout_in_seconds;
	}



}


?>